package com.ronglian.register_mini_program.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(value = "活动")
public class RegisterActivity {
    @ApiModelProperty(value = "活动id", name = "activity_id")
    private Integer activity_id;

    @ApiModelProperty(value = "活动类型", name = "type")
    private String type;

    @ApiModelProperty(value = "活动主题", name = "activity_title")
    private String activity_title;

    private String activity_postion;

    private Date start_time;

    private Date end_time;

    private String ticket_type;

    @NotNull
    @ApiModelProperty(value = "发起人微信openid", name = "sponsor_id")
    private String sponsor_id;

    @ApiModelProperty(value = "活动是否有效", name = "is_alive")
    private Integer is_alive;

    @ApiModelProperty(value = "票数", name = "count")
    private Integer count;

    @ApiModelProperty(value = "是否限制人数", name = "is_limit")
    private Integer is_limit;

    @ApiModelProperty(value = "限制人数", name = "limit_number")
    private Integer limit_number;

    @ApiModelProperty(value = "创建活动时间", name = "create_time")
    private Date create_time;

    @ApiModelProperty(value = "修改活动时间", name = "update_time")
    private Date update_time;

    public Integer getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(Integer activity_id) {
        this.activity_id = activity_id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getActivity_title() {
        return activity_title;
    }

    public void setActivity_title(String activity_title) {
        this.activity_title = activity_title == null ? null : activity_title.trim();
    }

    public String getActivity_postion() {
        return activity_postion;
    }

    public void setActivity_postion(String activity_postion) {
        this.activity_postion = activity_postion == null ? null : activity_postion.trim();
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public String getTicket_type() {
        return ticket_type;
    }

    public void setTicket_type(String ticket_type) {
        this.ticket_type = ticket_type == null ? null : ticket_type.trim();
    }

    public String getSponsor_id() {
        return sponsor_id;
    }

    public void setSponsor_id(String sponsor_id) {
        this.sponsor_id = sponsor_id == null ? null : sponsor_id.trim();
    }

    public Integer getIs_alive() {
        return is_alive;
    }

    public void setIs_alive(Integer is_alive) {
        this.is_alive = is_alive;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getIs_limit() {
        return is_limit;
    }

    public void setIs_limit(Integer is_limit) {
        this.is_limit = is_limit;
    }

    public Integer getLimit_number() {
        return limit_number;
    }

    public void setLimit_number(Integer limit_number) {
        this.limit_number = limit_number;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}